package com.test.excelservice.result;

import java.io.Serializable;


/**
 * 统一结果集封装
 * @author shilei
 */
public class Result<T> implements Serializable {

    private Integer code;

    private T data;

    public Result(Integer code, T data) {
        this.code = code;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
